package com.llly.mapper;

import com.llly.pojo.Easybuy_order;
import com.llly.pojo.Easybuy_user;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;


public interface UserMapper {
    //管理员页面，查询用户
    public List<Easybuy_user> showUsers();
    //用户登录,传密码账号
    public Easybuy_user loing(@Param("loginName") String loginName,@Param("password") String password);
    //用户注册！新增一个用户
    public int AddEasybuy_user(Easybuy_user ea);
    //管理员页面，id查询，查询当前用户详情
    public Easybuy_user iddetails(Integer id);
    //管理页面，修改
    public int updateUser(Easybuy_user ea);
    //管理员，伪装删除
    public int deleteUsers (Integer id);
}
